Skip to content

✨ Implement checks when adding objects to trip#463

Open
sixcare wants to merge 11 commits intomainfrom
trip/check-existing-when-adding
Open

✨ Implement checks when adding objects to trip#463
sixcare wants to merge 11 commits intomainfrom
trip/check-existing-when-adding

Conversation

@sixcare
Copy link
Copy Markdown
Collaborator

@sixcare sixcare commented Dec 16, 2025

This PR aims to implement checks when adding note, route, or item_list to a trip.
Before this fix the database would throw a unique constraint exception.
When you now add an existing object to a trip, 200 is return. When adding a new object, 201 is returned.

Closes #427

all the checks

@sixcare sixcare self-assigned this Dec 16, 2025
@sixcare sixcare requested a review from a team as a code owner December 16, 2025 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement check for double adding note_, route_, item_list_, refereances to an existing trip

1 participant